/**
 * bootstrap notify plugins
 */
(function() {
	'use strick',
	
	require.config({
		paths: {
			"bootstrap.notify": "bootstrap/extends/bootstrap-notify/3.1.5/js/bootstrap-notify.min"
		},
		shim: {
			"bootstrap.notify": {deps: ["jquery"], exports: "jQuery.notify"}
		}
	});
	
	define(['bootstrap.notify'], function(){
		return{
			warning:function(elem, msg, place){
				jQuery.notify({
					element: elem,
					message: msg,
					icon: 'glyphicon glyphicon-warning-sign'
				},{
					placement: {from: place||"top", align: "center"},
					z_index: 2031,
					type: 'danger'
				});
			},
			success:function(elem, msg, place){
				jQuery.notify({
					element: elem,
					message: msg,
					icon: 'glyphicon glyphicon-ok'
				},{
					placement: {from: place||"top", align:"center"},
					z_index: 2031,
					type: 'success'
				});
			}
		}
	});
})(this);
